package com.tl.khadmin.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.tl.khadmin.bean.FreightTemplate;

public interface FreightTemplateMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FreightTemplate record);

    int insertSelective(FreightTemplate record);

    FreightTemplate selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FreightTemplate record);

    int updateByPrimaryKey(FreightTemplate record);

	int queryByName(String templateName);

	List<FreightTemplate> list(Map<String, Object> param);

	Integer queryIdByNameAndId(@Param("id")Integer id, @Param("templateName") String templateName);
}